<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title><decorator:title default="Title" />&nbsp;-&nbsp;北科大团委</title>
		<meta http-equiv="author" content="neolimeng@gmail.com,Neo">
		<link rel="stylesheet" type="text/css" href="css/base.css">
		<link rel="stylesheet" type="text/css" href="css/head.css">
		<link rel="stylesheet" type="text/css" href="css/nav_css.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css">
		<link rel="stylesheet" type="text/css" href="css/layout.css">
		<link rel="stylesheet" type="text/css" href="css/menu.css">
		<script src='js/jquery.js' type="text/javascript"></script>
		<script src='js/nav_menu.js' type="text/javascript"></script>
		<decorator:head />
		<script type="text/javascript">
			//SuckerTree Vertical Menu (Aug 4th, 06)
			//By Dynamic Drive: http://www.dynamicdrive.com/style/
			
			var menuids=["suckertree1"]; //Enter id(s) of SuckerTree UL menus, separated by commas
			
			function buildsubmenus(){
			for (var i=0; i<menuids.length; i++){
			  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul");
			    for (var t=0; t<ultags.length; t++){
			    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle";
			    ultags[t].parentNode.onmouseover=function(){
			    this.getElementsByTagName("ul")[0].style.display="block";
			    };
			    ultags[t].parentNode.onmouseout=function(){
			    this.getElementsByTagName("ul")[0].style.display="none";
			    };
			    }
			  }
			}
			
			if (window.addEventListener)
			window.addEventListener("load", buildsubmenus, false);
			else if (window.attachEvent)
			window.attachEvent("onload", buildsubmenus);
		</script>
		
   		<script type="text/javascript">
  			function getLatestWeibos(){
  	  			//alert('Hello!');
  	  			$.post("getLatestWeibos.jsp",
	        			function(data,textStatus){
  	  						//alert('Hello!');
	       					//alert(textStatus);
	       					$("#weibos").html(data);
	       				}
	  			);
	  			//http://localhost:8080/5470/home.action
  			}
   			$(function(){
   				getLatestWeibos();
   	   			window.setInterval("getLatestWeibos()",120000);
  			});
   		</script>
	</head>

	<body>
		<div id="pageContainer">
			<div id="bodyArea">
				<div id="leftArea">
		            <div id="leftHead">
		                <div id="logo">
							<a href="home.action" ><img src="images/logo.png" /></a>
						</div>
		                <div class="suckerdiv">
		                    <ul id="suckertree1">
		                        <li><a>组织机构</a>
		                            <ul>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=1">机构设置</a></li>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=2">工作职责</a></li>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=3">团委人员</a></li>
		                            </ul>
		                        </li>
		                        <li><a>团学新闻</a>
		                            <ul>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=4">团学快讯</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=5">团内新闻</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=6">院系新闻</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=7">通知公告</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=8">团学视频</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=9">图片新闻</a></li>
		                            </ul>
		                        </li>
		                        <li><a>团委文件</a>
		                            <ul>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=10">校团发</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=11">校团通</a></li>
		                            </ul>
		                        </li>
		                        <li><a>青春风采</a>
		                            <ul>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=12">团委机关</a></li>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=13">基层团委</a></li>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=14">学生组织</a></li>
		                                <li class="sub_nav"><a href="article/viewLatestArticleByCid.action?cid=15">缤纷社团</a></li>
		                            </ul>
		                        </li>
		                        <li><a>资料下载</a>
		                            <ul>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=16">下载专区</a></li>
		                                <li class="sub_nav"><a href="article/viewArticles.action?cid=17">常用审批</a>
		                                    <ul>
		                                        <li class="sub_nav"><a href="#">下级菜单</a></li>
		                                        <li class="sub_nav"><a href="#">下级菜单</a></li>
		                                    </ul>
		                                </li>
		                            </ul>
		                        </li>
		                    </ul>
		                </div>
		                <div id="leftSearch">
		                    <form >
		                        <input type="text" name="search" />
		                        <input type="submit" value="搜索" />
		                    </form>
		                </div>
		                <div id="leftNavOthers">
			                <ul>
			                    <li><a href="article/viewArticles.action?cid=17">常用审批</a></li>
			                    <li><a href="#">北科大青年</a></li>
			                    <li><a href="article/viewArticles.action?cid=18">手机报</a></li>
			                </ul>
		                </div>
		            </div>
		            <div  id="leftWeiBo">
		                <a id="leftWeiBoHead" href="weibo/viewWeiboInfo.jsp" style="display:block;">
		                	微博版块
	                	</a>
	                	<div id="weibos">
	                		<font color="red">加载中...</font>
	                	</div>
			        </div>
				</div>
				<div id="rightArea">
					<div id="rightArea_top_banner">
						<img src="images/sub_banner.png"  alt="5470"/>
					</div>
					<decorator:body />
				</div>
			</div>
			<div id="footArea">
				<jsp:include page="foot.jsp"></jsp:include>
			</div>
		</div>
	</body>
</html>
